Factory Method

[ˈfæktri ˈmeθəd]
  • Factory Method
  • 网络

    工厂方法;工厂方法模式;工厂模式;工厂设计模式

纠错 数据更新时间:2026-04-18 17:33:59
1、

Then, I use the factory method pattern so that the coupling is with the interface.

然后再使用工厂方法模式,这样耦合度就与界面相关联了。

互联网摘选

2、

In the layer of database connection, author has studied the application environment and method by factory method and utilized this pattern to solve the connection problem of different database.

在数据连接管理层中,作者研究了创建型模式中简单工厂方法模式Factory Method的应用环境、应用方法,利用该模式解决与异构数据库连接的问题。

互联网摘选

3、

Factory Method is a structural pattern that lets a class defer instantiation to subclasses.

工厂方法(Factory Method)是一种结构模式,它使一个类延迟实例化到子类。

互联网摘选

4、

The example gave a client and server bundle ( both in the same VM), and the client found the server via a factory method.

文中的例子给出了一个client和一个server bundle(两者在同一个VM中),client通过工厂方法找到server。

互联网摘选

5、

It describes two kinds of design patterns in COM in detail: Factory Method Pattern and Proxy Pattern, and tells how to realize the former.

接着具体讲述了组件对象模型中使用的两种设计模式:工厂方法模式和代理模式。

互联网摘选

6、

This is a typical example of the Factory Method Pattern.

这是个典型的Factory方法模式实例。

互联网摘选

7、

You can retrieve an MXBean instance from a static factory method that gives you direct access to the locally running JVM's MXBean interface.

您可以从一个静态工厂方法获得一个MXBean实例,该方法可以使您直接访问本地运行的JVM的MXBean接口。

互联网摘选

8、

You use the factory method pattern when an application needs to create objects whose type depend on the implementation of subclasses.

您可以在应用程序需要创建其类型依赖于子类的实现的对象时,使用工厂方法模式。

互联网摘选

9、

The singleton, builder, and factory method design patterns are considered creational patterns, as they assist in the construction of objects.

单例、生成器和工厂方法设计模式被视为是创建型的模式,因它们可协助对象的构建。

互联网摘选

10、

This factory method instantiates the collection of course objects by delegating the work to the service layer.

该工厂方法通过将这项工作委托给服务层来实例化课程对象集合。

互联网摘选

11、

The Extraction of Product Machining Information Based on Factory Method Design Pattern

基于工厂设计模式的产品加工信息提取

互联网摘选

12、

The class returned by the factory method is an adapter to a particular cloud service.

工厂方法返回的类用于一个特定于服务的适配器。

互联网摘选

13、

Before you generate the code and go through it, be aware that you also need to add the appropriate methods for the Factory Method Pattern.

在您生成代码并检查之前,要知道您也需要为Factory方法模式添加适当的方法。

互联网摘选

14、

The Factory Method Pattern is a creational pattern that defines an interface for creating an object but lets subclasses decide which actual class to instantiate.

Factory方法模式是一个创建的模式,它定义一个用来创建对象的接口,而让子类来决定实例化哪个类。

互联网摘选

15、

Optional: create a unit test to assure that the original target object's factory method still returns the correct, non-mock object.

可选的:创建单元测试以确保原始目标对象的工厂方法仍返回正确的非模仿对象。

互联网摘选

16、

This section offers a step-by-step description of the Extract and Override factory method refactoring.

本节将循序渐进地描述“抽取”和“覆盖”工厂方法重构。

互联网摘选

17、

Assure that the factory method is accessible to the target object and its subclasses.

确保目标对象及其子类可以访问工厂方法。

互联网摘选

18、

This paper introduces the steps of genetic programming. We give a general data structure of program tree and give its algorithm base on the simple factory method of design pattern.

介绍了遗传程序设计的一般步骤,根据设计模式中的简单工厂模式,提出了一种通用的程序树描述方法,针对这种描述方法给出相应的算法。

互联网摘选

19、

Considering the demand of the customer and referring excellent configuration software in the world, this paper chooses Factory Method from several classical methods to design the framework of the software.

本文结合实际项目的任务需求,在参考国内外成熟组态软件的基础上,选择工厂模式对软件的主体结构进行设计,保证了系统的一致性和可扩展性。

互联网摘选

20、

Now, let us make sense of this definition for the Factory Method pattern.

现在,让我们在这个意义上定义的工厂方法模式。

互联网摘选

21、

From factory method to abstract factory

从工厂方法到抽象工厂

互联网摘选

22、

Refactoring: Extract and override factory method

重构:抽取和覆盖工厂方法

互联网摘选

23、

To create an instance of the Factory Method Pattern, perform the same steps as for the Singleton Pattern.

要创建Factory方法模式的实例,执行同Singleton模式相同的步骤。

互联网摘选

24、

In other words, Factory Method lets a class defer the instantiation to its subclasses.

换句话说,Factory方法令一个类实例化到其子类。

互联网摘选

25、

The need for using a supertype arises frequently in the Java language, especially when the Factory Method pattern is used.

使用父类的需求在Java语言中经常出现,特别是在使用了Factory Method模式的情况下。

互联网摘选

26、

The factory method pattern, an element of the design pattern, provides a very flexible and powerful dynamic-expanding mechanism for system structure.

设计模式中的工厂方法模式为系统结构提供了非常灵活强大的动态扩展机制,采用。

互联网摘选

27、

The factory method pattern, as its name implies, defines the implementation of a method used to churn out objects.

而工厂方法模式,顾名思义,定义的是一个用来大量产出对象的方法的实现。

互联网摘选

28、

For example, suppose we want to add a factory method to a List class.

例如,假定想将factory方法添加到List类中。

互联网摘选

29、

Some of the more common ones, like Factory Method, are ubiquitous, even in the Java language itself.

一些更为通用的方式,如工厂方法则是普便存在的,甚至存在于Java语言本身。

互联网摘选

30、

In this way, the object returned from the static factory method could implement any number of interfaces defined when I create the proxy.

用这种方式,静态工厂方法返回的对象可以实现建立代理时所定义的任意数量的接口。

互联网摘选

  • 相关词组
  • 今日热词
  • 热门搜索
  • merely[ˈmɪəli] adv.只不过;仅仅;
  • cancer[ˈkænsə(r)] n.癌;癌症;邪恶;毒瘤;
  • remote[rɪˈməʊt] adj.偏僻的,遥远的;关系疏远的;微乎其微的;冷漠的;远程的;相差很大的;n.遥控(器);
  • flatten[ˈflætn] vt.& vi.变平,使(某物)变平;打倒,击倒;使失去光泽;
  • if you come to me[ɪf ju kʌm tu mi] 如果你来到我身边;   如果你来找我;原子少女猫;
  • vessel[ˈvesl] n.容器;船,飞船;血管,管束;…的化身;
  • centos['sentəʊ] abbr.社区企业操作系统(Community Enterprise Operating System);
  • Arctic['ɑ:ktɪk] adj.北极的,寒带的;极寒的;(态度)冰冷的;n.北极圈,北极地带;(常复数)<美>御寒防水套鞋;
  • pubmed 美国国家医学图书馆;文献服务检索系统;医学图书馆;医学图书馆资源;医学图书馆检索系统
  • single[ˈsɪŋgl] adj. 单一的;(打斗、比赛等)一对一的;惟一的;适于一人的;n. 单程票;(旅馆等的)单人房间;[复数](高尔夫球一对一的)二人对抗赛;[常用复数][美国、加拿大英语]未婚(或单身)男子(或女子);
  • idle[ˈaɪdl] adj.无意义的;空闲的;懒惰的;无根据的;vi.虚度;空转;挂空挡;未熄火;
  • interpret[ɪnˈtɜːprət] v.诠释;领会,把…理解为;口译;演绎;

英语网英语词典(dict.25820.com)为您提供在线翻译英语词典单词大全英译汉汉译英等英语服务!可按单词字数词义分类查询。支持lj:关键词格式查询例句。

用户反馈
请选择反馈类型(可多选):
您的联系方式:
反馈内容:
提交成功 小编会尽快处理
回到顶部
点击反馈